package com.mspbots.api.service;

import com.mspbots.cw.request.TenantConfigurationDTO;
import com.mspbots.dto.enums.Configuration;

import java.util.List;
import java.util.Map;

/**
 * com.mspbots.api.service.TenantConfigurationService
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/6/28
 */
@Deprecated
public interface TenantConfigurationService {

    TenantConfigurationDTO findById(long id);

    List<TenantConfigurationDTO> addBatch(List<TenantConfigurationDTO> dtos);

    /**
     * find by tenantId
     *
     * @param tenant
     * @return
     */
    List<TenantConfigurationDTO> findAllByTenant(long tenant);

    TenantConfigurationDTO findByKeyword(long tenantId, String keyword);


    List<TenantConfigurationDTO> listByKeyword(Map<String, Object> queryParams);

    /**
     * will return all the configurations which keyword = @keyword
     * will ignore tenant_id
     *
     * @param keyword
     * @return
     */
    List<TenantConfigurationDTO> selectListByKeyword(Configuration keyword);
}
